﻿@model Forest.Cat.Web.Models.JobHunting.SavedCompanyViewModel
@{
    var ajaxOptions = new AjaxOptions() { HttpMethod = "POST", OnBegin = "return checkLogin();", UpdateTargetId = "savedCompanyPart" + Model.CompanyId };
}
<span id="@("savedCompanyPart" + Model.CompanyId)">
    @if (Model.IsSaved)
    { 
        @Ajax.ActionLink("取消关注", "DoSavedCompany", new { id = Model.CompanyId, isDoSave = false }, ajaxOptions)
    }
    else
    { 
        @Ajax.ActionLink("关注", "DoSavedCompany", new { id = Model.CompanyId, isDoSave = true }, ajaxOptions)
    }
</span>
